import { request } from '@umijs/max';

export async function fakeSubmitForm(params: any) {
  return request('/api/advancedForm', {
    method: 'POST',
    data: params,
  });
}


export async function getSettingList(params: any = {}) {
  return request('/extra-server/api/v1/setting/list', {
    method: 'POST',
    data: params,
  });
}

export async function batchSaveSetting(data: any = {}) {
  return request('/extra-server/api/v1/setting/batch_save', {
    method: 'POST',
    data,
  });
}
